<div class="sysWebsites index">
	<h1>
		<?php echo ($venue['Venue']['title_cn'])?> 图片展示
	</h1>
	<div class="bloc">
		<div class="title">
			<?php echo $this->element('admin/bread')?>
			 <p><?php echo $this->Html->link(__('添加'), array('action' => 'add',$venue['Venue']['id'])); ?></p>
		</div>
	    <div class="admin_view_table">
	         <table cellpadding="0" cellspacing="0">
	          <thead>
				<tr>
						<th><?php echo $this->Paginator->sort('id','ID'); ?></th>
						<th><?php echo $this->Paginator->sort('venue_id','场馆'); ?></th>
						<th><?php echo $this->Paginator->sort('sys_photo_id','图片'); ?></th>
						<th><?php echo $this->Paginator->sort('title','标题'); ?></th>
						<th><?php echo $this->Paginator->sort('description','描述'); ?></th>
						<th><?php echo $this->Paginator->sort('sort','排序'); ?></th>
						<th><?php echo $this->Paginator->sort('enable','启用'); ?></th>
						<th><?php echo $this->Paginator->sort('created','添加时间'); ?></th>
						<th class="actions"><?php echo __('操作'); ?></th>
				</tr>
				</thead>
				<tbody>
				<?php foreach ($venueGalleries as $venueGallery): ?>
				<tr>
					<td><?php echo h($venueGallery['VenueGallery']['id']); ?>&nbsp;</td>
					<td><?php echo h($venueGallery['Venue']['title_cn']); ?>&nbsp;</td>
					<td>
						<?php 
							if ($venueGallery['SysPhoto']['id']>0){
								$imgsrc = thumb($venueGallery['SysPhoto']);
							}else{
								$imgsrc = 'Album.nopic.jpg';
							}
							echo $this->Html->image($imgsrc,array('style'=>'width:100px;height:100px'));
						 ?>
					</td>
					<td><?php echo h($venueGallery['VenueGallery']['title']); ?>&nbsp;</td>
					<td><?php echo h($venueGallery['VenueGallery']['description']); ?>&nbsp;</td>
					<td><?php echo h($venueGallery['VenueGallery']['sort']); ?>&nbsp;</td>
					<td><?php echo h($venueGallery['VenueGallery']['enable']); ?>&nbsp;</td>
					<td><?php echo h($venueGallery['VenueGallery']['created']); ?>&nbsp;</td>
					<td class="actions">
						<?php echo $this->Html->link(__('Edit'), array('action' => 'edit', $venueGallery['VenueGallery']['id'])); ?>
						<?php echo $this->Form->postLink(__('Delete'), array('action' => 'delete', $venueGallery['VenueGallery']['id']), null, __('Are you sure you want to delete # %s?', $venueGallery['VenueGallery']['id'])); ?>
					</td>
				</tr>
			<?php endforeach; ?>
			</tbody>
			</table>
	    </div>
	</div> 
</div> 